package net.wangds.dymodel.service;

import net.wangds.dymodel.comp.DyModelPropDefOpComp;
import net.wangds.dymodel.meta.entity.DyModelPropDefEntity;
import net.wangds.jpa.service.AbstractJpaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Service;

/**
 * .
 * <p></p>
 *
 * @author 王东石 2020/11/10 16:02.
 */
@Service
public class DyModelPropDefOpService extends AbstractJpaService<DyModelPropDefEntity, DyModelPropDefOpComp> {

    @Autowired
    private DyModelPropDefOpComp mmCmpOp;

    @Override
    protected DyModelPropDefOpComp fetchJpaComp() {
        return mmCmpOp;
    }


    public Page<DyModelPropDefEntity> findByDyMdlId(String dyModelId, PageRequest paging) {
        return mmCmpOp.findByDyModelId(dyModelId, paging);
    }

}
